   //获取登录者信息
   let oldusername = sessionStorage.getItem("stuname");
   $.ajax({
           method: "get",
           url: "http://192.168.50.142:81/oldlook",
           data: {
               oldusername: oldusername
           },
           success: function(data) {
               let dataList = JSON.parse(data);
               let template = $("#oneTrs");
               let i = 0;
               dataList.forEach((item) => {
                   let newitem = template.clone(true);
                   newitem.attr("id", "");
                   i++;
                   newitem.find(".tdone").html(i);
                   newitem.find(".tdone").attr("delid", item.id);
                   newitem.find(".tdtwo").attr("src", item.goodsimg);
                   newitem.find(".tdthree").html(item.goodname);
                   newitem.find(".tdfore").html(item.money);
                   newitem.find(".tdfive").html(item.data);
                   newitem.find(".tdsix").html(item.gouname);
                   if (item.fukuan === "0") {
                       newitem.find(".del").html("未付款");
                   };
                   if (item.fukuan === "1") {
                       newitem.find(".del").html("已付款");
                   }
                   newitem.appendTo($(".table"));
                   //newitem.after($(".firsttr"));
               })

           }
       })
       //判断用户是否的登录===========================================================
       //跳转个人
   $(".nolookone").click(function() {
           //获取到页面保存的值
           let phooo = sessionStorage.getItem("stuname");
           console.log(phooo);
           if (phooo == null) {
               alert("请登录");
               location.href = "http://192.168.50.142/MIDO/denglu.html";
               return;
           };
           //判断是否穿在
           location.href = "http://192.168.50.142/gerenxinxi.html";
       })
       //跳转购物车
   $(".nolooktwo").click(function() {
           //获取到页面保存的值
           let phooo = sessionStorage.getItem("stuname");
           console.log(phooo);
           if (phooo == null) {
               alert("请登录");
               location.href = "http://192.168.50.142/MIDO/jieyexiangmu/denglu.html";
               return;
           };
           //判断是否穿在
           location.href = "http://192.168.50.142/MIDO/gouwuche.html";
       })
       //========================
       //判断是否登录
       //获取到页面保存的值
   function qqj() {
       let phooo = sessionStorage.getItem("stuname");
       if (phooo !== null) {
           $
           let yesname = $(".yesdenglu").html();
           yesname = "已登录";
           $(".yesdenglu").html(yesname);
           console.log(yesname);
       } else {
           let yesname = $(".yesdenglu").html();
           yesname = "请登录";
           $(".yesdenglu").html(yesname);
           console.log(yesname);
       }
   }
   qqj();